package cn.lixu.product.mapper;

import cn.lixu.basic.mapper.BaseMapper;
import cn.lixu.product.domain.Product;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ProductMapper extends BaseMapper<Product> {
    /**
     * 宠物上架
     *
     * @param ids
     * @param date
     */
    void onSale(@Param("ids") List<Long> ids, @Param("onsaletime") Date date);

    /**
     * 宠物下架
     *
     * @param ids
     * @param date
     */
    void offSale(@Param("ids") List<Long> ids, @Param("offsaletime") Date date);
}


